package com.zr.datamodel;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * 货物实体类
 * @author Administrator
 *
 */
@Entity
@Table(name="ld_goods")
public class GoodsDM {
	//货物id
	private int id;
	//货物重量
	private int weight;
	//货物体积
	private int size;
	//货物名称
	private String name;
	//货物数量
	private int count;
	//货物类别
	private GoodTypeDM goodtype;
	private OrderDM order;
	@Id
	@GeneratedValue
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public int getWeight() {
		return weight;
	}
	public void setWeight(int weight) {
		this.weight = weight;
	}
	public int getSize() {
		return size;
	}
	public void setSize(int size) {
		this.size = size;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public int getCount() {
		return count;
	}
	public void setCount(int count) {
		this.count = count;
	}
	@ManyToOne
	public GoodTypeDM getGoodtype() {
		return goodtype;
	}
	public void setGoodtype(GoodTypeDM goodtype) {
		this.goodtype = goodtype;
	}
	@ManyToOne
	public OrderDM getOrder() {
		return order;
	}
	public void setOrder(OrderDM order) {
		this.order = order;
	}
	
}
